package com.jshoperxms.controller.utils.enums;

/**
 * Created by sdywcd on 16/11/14.
 * Des:广告枚举
 */
public class FaqEnums {
    public enum FaqRecommend {
        YES("推荐", "1"), NO("不推荐", "0");

        private String name;
        private String state;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        private FaqRecommend(String name, String state) {
            this.name = name;
            this.state = state;
        }

        public static String getName(String tag) {
            for (FaqRecommend d : FaqRecommend.values()) {
                if (d.getState().equals(tag)) {
                    return d.getName();
                }
            }
            return "";
        }
    }


    public enum FaqReviewed {
        PASS("通过", "1"), NO("未审核", "0"),REJECT("驳回","2");

        private String name;
        private String state;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        private FaqReviewed(String name, String state) {
            this.name = name;
            this.state = state;
        }

        public static String getName(String tag) {
            for (FaqReviewed d : FaqReviewed.values()) {
                if (d.getState().equals(tag)) {
                    return d.getName();
                }
            }
            return "";
        }
    }




    public enum FaqPosition {
        HEADER("页眉", "1"), FOOTER("页脚", "0"),MENU("菜单","2");

        private String name;
        private String state;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        private FaqPosition(String name, String state) {
            this.name = name;
            this.state = state;
        }

        public static String getName(String tag) {
            for (FaqPosition d : FaqPosition.values()) {
                if (d.getState().equals(tag)) {
                    return d.getName();
                }
            }
            return "";
        }
    }



}
